package net.cardgame.oraclecard.service;

public class DownloadUnzipObject {
	@Override
	public String toString() {
		return "DownloadUnzipObject [deckId=" + deckId + ", position="
				+ position + ", percent=" + percent + ", urlDownload="
				+ urlDownload + ", finished=" + finished + ", pathSaveFile="
				+ pathSaveFile + ", strId=" + strId + "]";
	}

	private int deckId;
	private int position;
	private int percent;
	private String urlDownload;
	private boolean finished = false;
	private String pathSaveFile;
	private String strId;

	public String getStringId() {
		return strId;
	}

	public String getPathSaveFile() {
		return pathSaveFile;
	}

	public void setPathSaveFile(String pathSaveFile) {
		this.pathSaveFile = pathSaveFile;
	}

	public int getDeckId() {
		return deckId;
	}

	public void setDeckId(int deckId) {
		this.deckId = deckId;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public int getPercent() {
		return percent;
	}

	public void setPercent(int percent) {
		this.percent = percent;
	}

	public String getUrlDownload() {
		return urlDownload;
	}

	public void setUrlDownload(String urlDownload) {
		this.urlDownload = urlDownload;
	}

	public void setFinished() {
		this.finished = true;
	}

	public boolean isFinished() {
		return finished;
	}

	public DownloadUnzipObject(int deckId, int position, String url,
			String pathSave) {
		this.deckId = deckId;
		this.position = position;
		this.urlDownload = url;
		this.pathSaveFile = pathSave;
		this.percent = 0;
		strId = deckId < 10 ? "0" + deckId : "" + deckId;
	}

}
